package com.pro.service.imple;
//审核 业务层
import com.pro.mapper.SyCourseRecordMapper;
import com.pro.pojo.SyCourseRecord;
import com.pro.service.SyCourseRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SyCourseRecordServiceImple implements SyCourseRecordService {
    @Autowired
    private SyCourseRecordMapper syCourseRecordMapper;

    //分别获取 待审核、已审核、审核通过的商品数量
    @Override
    public Integer getProductsCount(String result) {
        Integer productsCount = syCourseRecordMapper.getProductsCount(result);

        return productsCount;
    }

    @Override
    public boolean updateProductRecordResult(SyCourseRecord syCourseRecord) {
        return syCourseRecordMapper.updateProductRecordResult(syCourseRecord);
    }

    @Override
    public boolean addProductRecord(SyCourseRecord examine) {
        return syCourseRecordMapper.addProductRecord(examine);
    }

    @Override
    public boolean addJsCourseRecord(SyCourseRecord param) {
        return syCourseRecordMapper.addJsCourseRecord(param);
    }

    @Override
    public boolean updatedetails(SyCourseRecord syCourseRecord) {
        return syCourseRecordMapper.updatedetails(syCourseRecord);
    }

    @Override
    public Integer getToAuditsCount(SyCourseRecord syCourseRecord) {
        return syCourseRecordMapper.getToAuditsCount(syCourseRecord);
    }


}
